package com.ruoyi.common.core.domain.heytalk.dto;

import com.ruoyi.common.constant.heytalk.CommonConstants;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 撤回消息入参DTO
 * @author zhusy
 * @since 2021/12/27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("撤回消息入参DTO")
public class RecallChatDTO {

    /**
     * 接收人/群 id
     */
    @NotBlank(message = "接收人/群 id不能为空")
    private String toId;

    /**
     * 接收类型
     * {@link CommonConstants.ChatTypeEnum}
     */
    @NotBlank(message = "接收类型不能为空")
    private String chatType;

    /**
     * 消息ID
     */
    @NotBlank(message = "消息ID不能为空")
    private String id;

}
